package com.open.server.two.controller;

import com.open.commons.aspect.Log;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：liushuai
 * @date ：Created in 2021/9/30 12:35
 * @description：${description}
 * @modified By：
 * @version: $version$
 */
@Slf4j
@RequestMapping
@RestController
@Log
public class OderStorageController {
    @PostMapping("/getOrderByName")
    public String getOrderByName(@RequestBody String name) {
        log.info("service1 开始执行");
//        tracer.currentSpan().tag("param", name);
//        String resultOfService2 = remoteBaseService.getResultOfService2(name);
        log.info("service1 执行完毕");
        return "service1";
    }
}